package com.newgrand.annexserver.service;

import com.newgrand.annexserver.beans.Dbconfig;
import com.baomidou.mybatisplus.service.IService;
import org.apache.commons.lang3.tuple.Pair;

import java.util.List;


/**
 * <p>
 * 业务端连接及存储策略配置 服务类
 * </p>
 *
 * @author minyang
 * @since 2019-09-06
 */
public interface DbconfigService extends IService<Dbconfig> {

    Pair<Boolean, String> addDBConfig(String dbtoken, Dbconfig dbconfig);

    List<Dbconfig> getDBConfigList(int state);

    Dbconfig getDBConfigByDbToken(String dbToken);
}
